package com.csun.cmny.provider.model.dto.follow;

import com.csun.cmny.base.dto.BaseQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-16 16:35
 * @Description: the follow data query page
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class FollowDataPageQuery extends BaseQuery {

    private static final long serialVersionUID = -3019813648523928569L;

    private Long deviceId;

    private Integer oldmanId;

    private String oldmanName;

    private Long groupId;

    //老人id集合
    private List<Long> idList;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startQueryTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endQueryTime;



}
